//
//  StoneCache.h
//  StoneAPI
//
//  Created by 陈小东 on 15/3/14.
//  Copyright (c) 2015年 _____stone_chenxiaodong_____. All rights reserved.
//

#import <UIKit/UIKit.h>

typedef void(^percentBlock)(float percent,NSError * error);
typedef void(^finishBlock)();
@interface StoneCache : NSObject
@property (nonatomic,strong,readonly) NSCache * memoryCache;
+(StoneCache*)sharedCache;

-(uint64_t)sizeOfCacheInDisk;

-(void)setObject:(id<NSCoding>)object
          forKey:(NSString*)key;

-(id)objectForKey:(NSString*)key;

-(void)removeAllDiskWithPercentBlock:(percentBlock)percentblock
                         finishBlock:(finishBlock)finishblock;
@end
